<% fields_for "hour[]", @hour do |f| %>
		<tr class="new-hour-row">
			<td width="218"><%= f.date_select :date, :order => [:day, :month, :year], :index => '' %></td>
			<td width="205"><%= f.collection_select :project_id, @user.projects.active_projects, :id, :name, { :include_blank => true, :prompt => 'Choose a Project' }, { :class => 'project' } %></td>
			
			
			<td width="116"><%= time_select :hour, :start_time, { :include_seconds => false, :minute_step => 15, :index => '', :default => { :hour => 8, :minute => 00 } }, { :class => "start_time" } %></td>
			<td width="130"><%= time_select :hour, :end_time, { :include_seconds => false, :minute_step => 15, :index => '', :default => { :hour => 16, :minute => 00 } }, :class => "end_time" %> <span id="calculated_hours"></span></td>
			
			<td><%= f.text_area :description, :rows => 3, :cols => 25 %></td>
			<td><%= link_to_function 'd', '$(this).parent().parent().remove()' %></td>
		</tr>
<% end %>